//
//  InViewController.m
//  11-23test
//
//  Created by mac on 15-11-23.
//  Copyright (c) 2015年 yb. All rights reserved.
//

#import "InViewController.h"

@interface InViewController ()<UITextFieldDelegate>
{
    UITextField *tf;
    NSIndexPath *dp;
}
@end

@implementation InViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view.
    tf = [[UITextField alloc]initWithFrame:CGRectMake(15, 15, self.view.frame.size.width -30, 44 - 20)];
    tf.text = self.tel;
    //self.navigationItem.rightBarButtonItem = self.editButtonItem;
    tf.clearButtonMode = UITextFieldViewModeAlways;
    [self.tableView registerClass:[UITableViewCell class] forCellReuseIdentifier:@"aaa"];
}
           
- (void)viewDidAppear:(BOOL)animated
{
    [super viewDidAppear:animated];
    [tf becomeFirstResponder];
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return 1;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    //UITableViewCell *cell = [[UITableViewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:nil];
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"aaa"];
    
    [cell addSubview:tf];
    return cell;
    
}




- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
